package com.garbuz.svnadmin.data;

public class Permission
{
	public String name;
	public boolean readonly;
	public boolean isGroup;

	@SuppressWarnings("UnusedDeclaration")
	public Permission()
	{
	}

	public Permission(User user)
	{
		name = user.name;
		isGroup = false;
		readonly = false;
	}

	public Permission(Group group)
	{
		name = group.name;
		isGroup = true;
		readonly = false;
	}

	public Permission(Group group, boolean readonly)
	{
		this.name = group.name;
		this.isGroup = true;
		this.readonly = readonly;
	}
}
